from demo_python_pkg.person_node import PersonNode
import rclpy


class WriterNode(PersonNode):
    def __init__(self, node_name:str,name: str, age: int, book: str):
        super().__init__(node_name,name, age)
        self.get_logger().info("WriterNode 的 __init__ 方法被调用了")
        self.book = book
        pass

    pass


def main():
    rclpy.init()
    node = WriterNode('writer_node',"法外狂徒", 18, "论快速入狱")
    node.eat("鱼香肉丝")
    rclpy.spin(node)
    rclpy.shutdown()
